<?php
header('Content-Type:text/html; charset=utf-8');
require_once 'dbClasses'.DIRECTORY_SEPARATOR.'config.php';
require_once 'dbClasses'.DIRECTORY_SEPARATOR.'dbConn.php';
$db = new dbConn();
$table = empty($_GET['table'])?'content':$_GET['table'];
$id = $_GET['id'];
$db->sql = "SELECT c.*,a.id as aid FROM `{$table}` c LEFT JOIN admin a ON a.userName=c.updater  WHERE c.id = ".$id;
$info = $db->doResult2();
//echo json_encode( htmlspecialchars_decode($info) );
echo json_encode( $info );
return;
?>
